<div class="form">
    <div class="form-wrap">
        <?php echo $this->form ?>
    </div>
    <script type="text/javascript">
        function hrefcmslist(ev){
            $('#url').val(this.value);
        }
            
        $(function(){
            
            $('#cmsurl').change(hrefcmslist);
            
            $.ajax({
                type: 'POST',
                contentType: "application/json",
                url: '/admin/index/getcmslist',
                data: { name: 'norm' },
                dataType: 'json',
                success: function(data, textStatus, jqXHR){
                                                            
                    for(var i=0;i< data.pages.length;i+=1){
                                                                
                        $('#cmsurl')
                        .append($('<option>', { value : data.pages[i].rewrite.replace(/\s/g,'') })
                        .text(data.pages[i].title)); 
                    }
                }
            });
        });
    </script>
</div>